#!/bin/bash

ps -ef | grep "yhs_start.sh" | grep -v "grep"
if [ "$?" -eq 1 ]
    then
    bash /home/yhs/.wrks/hkprinter/HKPrinter/script/yhs_start.sh
    echo "yhs_start.sh process has been restarted!"
else
    echo "yhs_start.sh process already started!"
fi
# sleep 10